#pragma once
#include "AccountDef/AccountLoginDef.h"

enum Z2G_PROTOCAL
{
    z2g_protocol_begin,
    
    z2g_login_respond,
    z2g_sync_login_info,

    z2g_protocol_total
};

#pragma pack(1)

struct XZ2GHeader
{
    BYTE byProtocol;
};

struct Z2G_LOGIN_RESPOND : public XZ2GHeader
{
    int32_t nLoginID;
    BYTE    byResult;
};

struct Z2G_SYNC_LOGIN_INFO : public XZ2GHeader
{
    char    szIP[MAX_IP_ADDRESS_LEN];
    int32_t nLoginID;
    int16_t nPort;
};

#pragma pack()